<!doctype html>
<html>
<head>
<meta charset="utf-8"/>
<title>{$head[title]}</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta content="{$head[keywords]}" name="keywords" />
<meta content="{$head[description]}" name="description" />
<base href="{SITE_URL}" />
<link href="favicon.ico" rel="shortcut icon" />
<link href="skin/style.css" rel="stylesheet" type="text/css" />
<link rel="alternate" type="application/rss+xml" title="{$head[title]}" href="/rss.php?rssid={$catid}" />
<script language="JavaScript" src="misc/config.js"></script>
<script language="JavaScript" src="misc/jquery.min.js"></script>
<script language="JavaScript" src="misc/common.js"></script>
<script language="JavaScript" src="misc/validator.js"></script>
</head>
<body>

{template 'header.html'}


<div class="container">
	<div class="main">
    	
        <ul class="breadcrumb">
          <li><a href="#">首页</a> <span class="divider">/</span></li>
          <li><a href="#">短消息</a> <span class="divider">/</span></li>
          <li class="active">收件箱</li>
        </ul>
        
     
        
        <form name="myform" id="myform" method="post" action="?module={$module}&file={$file}">
    	 <table cellpadding="0" cellspacing="1" class="table table-bordered">
         <caption>
      		{$anoucement}
      	  </caption>
        <tr>
        	<th width="10%">选中</th>
         	<th width="*">标题</th>
			<th width="10%">回复数</th>
           	<th width="10%">发件人</th>
			<th width="20%">发送时间</th>
        </tr>
        {loop $arr_message $msg}
        <tr>
        	<td><input type="checkbox" name="arr_msgid[]" class="input_1" id="checkbox" value="{$msg['messageid']}" /></td>
            <td  class="align_left"><a href="?module=message&action=read&userid={$_userid}&msgid={$msg['messageid']}">{if $msg['status'] == 1}<strong class="c_orange">{$msg['subject']}</strong>{else}{$msg['subject']}{/if}</a></td>
			<td>{$msg['num_reply']}</td>
            <td><a href="{url("?module=space&userid=$msg[send_from_id]")}" target="_blank">{username($msg['send_from_id'])}</a></td>
			<td>{$msg['date']}</td>
        </tr>
        {/loop}
		<tr>
			<td colspan="5" style="text-align:left;">
				<input type="hidden" id="action" name="action" value="delete" />
				&nbsp;&nbsp; &nbsp;&nbsp;
				<input type="button" name="arr_msgid" onclick='checkall()' value="全选" />
				&nbsp;
				<input type="button" name="export" id="export" value="导出" />
				&nbsp;
				<input type="button" name="dosubmit" id="delete" value="删除" onClick="if(confirm('确认批量删除这些消息吗？')) $('form').submit();return false;" />
			</td>
		</tr>
		</table>
		</form>
		<div class="pagination">{$pages}</div>
		{if $file == 'inbox'}
		<table cellpadding="0" cellspacing="1" class="table table-bordered">
			<caption>提示信息</caption>
			<tr>
				<td>可保存{$G['allowmessage']}条短消息</td>
			</tr>
		</table>
		{/if}
        
    </div>
    
    <div class="aside">
    {template "left.html","message"}
    </div>
</div>


 
 
<div id="toogle_panel"></div>
{template "footer.html"}
<script language="javascript">
	$("#export").click(function(){
		$('#action').val('export');
		$('form').submit();
	});
</script>